package com.iims.market.service;

import com.iims.common.vo.CreateUseInfo;
import com.iims.market.domain.PurposeContract;
import com.iims.market.vo.GroupPurposeContractSearchQuery;

import java.util.List;

/**
 * 合同
 *
 * @author fanpei
 * @date 2021/6/17 15:00
 */
public interface IPurposeContractService {
    /**
     * 获取合同列表
     */
    List<PurposeContract> selectPContractList(PurposeContract pContract);

    /*
     *分组获取合同列表
     */
    List<PurposeContract> selectPContractListGroup(GroupPurposeContractSearchQuery searchQuery);

    /**
     * 获取合同详情
     */
    PurposeContract selectDetailById(Long pContractId);

    int insertPContract(PurposeContract pContract);

    int updatePContract(PurposeContract pContract);

    int deletePContractById(Long pContractId);

    /**
     * 流程录入合同需求信息接口
     *
     * @param pContractJson
     * @return 返回bussinessKey
     */
    String createFlowInfo(PurposeContract pContractJson, CreateUseInfo createUseInfo);

}
